
package com.shop.cloud.mall.api.controller;

import com.shop.cloud.common.core.constant.SecurityConstants;
import com.shop.cloud.common.core.util.R;
import com.shop.cloud.upms.common.feign.FeignH5PortalDomainService;
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

/**
 * H5前端域名
 *
 * @author 
 * @date 2022-12-14 11:03:21
 */
@Slf4j
@RestController
@AllArgsConstructor
@RequestMapping("/h5portaldomain")
@Tag(description = "h5portaldomain", name = "H5前端域名管Api")
public class H5PortalDomainController {

    private final FeignH5PortalDomainService feignH5PortalDomainService;

	/**
	 * H5前端域名查询
	 * @param id 域名
	 * @return R
	 */
	@Operation(summary = "H5前端域名查询")
	@GetMapping("/{id}")
	public R getById(@PathVariable("id") String id) {
		return R.ok(feignH5PortalDomainService.getById(id, SecurityConstants.FROM_IN).getData());
	}

}
